package com.ybb.stock.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ybb.stock.entity.GoodsStockChangeEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface GoodsStockChangeMapper extends BaseMapper<GoodsStockChangeEntity> {

    @Update("update ybb_goods_stock_change set status=#{status} where order_id=#{orderId}")
    Integer changeStatus(Integer orderId, Integer status);
}
